/*
 * @Author: Leng
 * @Date: 2023-09-07 13:37:11
 * @Description: 全局状态
 * @FilePath: \travelWeb\uni-preset-vue-vite-ts\src\store\common.ts
 */

import { defineStore } from 'pinia'

const useStoreCommon = defineStore('common', {
  state: () => {
    return {
      // mock环境
      mockUrl: "https://mock.apifox.cn/m1/3269502-0-default"
    }
  },
  getters: {
    // doubleCount1(): number {
    //   return this.count--
    // },
  },
  actions: {
    // actionsUpdate(num: number) {
    //   this.$patch((state) => {
    //     state.count += num
    //   })
    // }
  }
})

export {
    useStoreCommon
}